import categoryReq from "../utils/request/category";
import guliReq from "../utils/request/request";
export const reqGetCategoryList = (categoryId?: number) =>
  categoryReq.get(
    `/item/cateList.json?__timestamp=1683190292219&categoryId=${
      categoryId || ""
    }`
  );
export const reqGetProdList = (categoryId: number, subCategoryId: number) =>
  categoryReq.get(
    `/item/list.json?__timestamp=1683247578325&categoryId=${categoryId}&subCategoryId=${subCategoryId}&categoryType=0`
  );
export const reqGetProdDetail = (skuId: number) =>
  guliReq.get(`/api/item/${skuId}`);
export const reqAddShopCart = (skuId: number, skuNum: number) =>
  guliReq.post(`/api/cart/addToCart/${skuId}/${skuNum}`);
